	import java.lang.reflect.Array;
	import java.util.Hashtable;
	import java.util.Random;
	
public class Character {
		private Hashtable stats = new Hashtable(10);
		private Hashtable growths = new Hashtable(8);
		private Hashtable weaponLevelTable = new Hashtable();
		private String Affinity;
//		private characterClass Class;
//		private Item weapons[];
//		weapons = new Item[4];
//		private Item consumables[];
//		consumables = new Item[4];

		public Character(Hashtable statTable, Hashtable statGrowthsTable, int Con, int Move, String Affinity, Hashtable weaponLevels) {
			stats.put("HP", statTable.get("HP"));
			stats.put("Attk", statTable.get("Attk"));
			stats.put("Mag", statTable.get("Mag"));
			stats.put("Skl", statTable.get("Skl"));
			stats.put("Def", statTable.get("Def"));
			stats.put("Res", statTable.get("Res"));
			stats.put("Spd", statTable.get("Spd"));
			stats.put("Luck", statTable.get("Luck"));
			stats.put("Con", Con);
			stats.put("Move", Move);
			this.Affinity = Affinity;
			growths.put("HPGrowth", statGrowthsTable.get("HPGrowth"));
			growths.put("AttkGrowth", statGrowthsTable.get("AttkGrowth"));
			growths.put("MagGrowth", statGrowthsTable.get("MagGrowth"));
			growths.put("SpdGrowth", statGrowthsTable.get("SpdGrowth"));
			growths.put("LuckGrowth", statGrowthsTable.get("LuckGrowth"));
			growths.put("SklGrowth", statGrowthsTable.get("SklGrowth"));
			growths.put("DefGrowth", statGrowthsTable.get("DefGrowth"));
			growths.put("ResGrowth", statGrowthsTable.get("ResGrowth"));
			weaponLevelTable = weaponLevels;
//			this.Class = Class;
		}
		
		private int getStat(String stat) {
			return (Integer) stats.get(stat);
		}
		
		private Hashtable getGrowths() {
			return growths;
		}
		
		private int getMovement() {
			return (Integer) stats.get("Move");
		}
		
		private String getAffinity() {
			return (String) stats.get("Affinity");
		}
		
		public void levelUp(Character c, String keyA, String keyB, Random RNG) {
			Hashtable growths = c.getGrowths();
			int growth = (Integer) growths.get(keyA);
			if (RNG.nextInt(100) <= growth) {
				c.getStat(keyB);
			}
		}
	}
